package com.supermap.application.dao;

import com.supermap.application.entity.TMacroPeriod;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MacroPeriodDao extends JpaRepository<TMacroPeriod, Integer> {

    //查询所有报告期时间
    @Query("select t from TMacroPeriod t where t.reportType = :report_type")
    List<TMacroPeriod> findMacroPeriodByReportType(@Param("report_type") Integer report_type);
}
